import axios from '@/libs/request/axios'
let prefix = "/jobadmin"

export const listAllGroup = ()=> {
    return axios.request({
        url: prefix + '/jobgroup/listAllGroup',
        method: 'post'
    })
}

export const getGroupList = (params)=> {
  return axios.request({
    url: prefix + '/jobgroup/list',
    method: 'post',
    data: params
  })
}

export const create = (params)=> {
  return axios.request({
    url: prefix + '/jobgroup/save',
    method: 'post',
    data: params
  })
}

export const remove = (id)=> {
  return axios.request({
    url: prefix + '/jobgroup/remove',
    method: 'get',
    params: {id: id}
  })
}

export const update =(params)=> {
  return axios.request({
    url: prefix + '/jobgroup/update',
    method: 'post',
    data: params
  })
}
